from os import getcwd
from os import chdir
from os import walk
from sys import argv
from re import search

class Find:

  def ls(self, key):
    counter = 0
    #searches for files matching "key" in current directory
    path = "/home/atomikin/git/"
    for root, dirs, files in walk(path):
      counter = counter + 1
      print counter
      print "rootl: ", root, ",", "dirsl: ", dirs, ",", "filesl: ", files
    print "root: ", root, ",", "dirs: ", dirs, ",", "files: ", files
    return root, dirs, files



if __name__ == "__main__":
  find_util = Find()
  Res = find_util.ls("dsdsds")
  print "rooto: ", Res[0], ",", "dirso: ", Res[1], ",", "fileso: ", Res[2]